//
//  PlayLevelRecorder.h
//  FruitCrush
//
//  Created by gaoyu on 15/8/4.
//
//

#ifndef __FruitCrush__PlayLevelRecorder__
#define __FruitCrush__PlayLevelRecorder__

#include "cocos2d.h"
USING_NS_CC;

class PlayLevelRecorder : public Ref
{
public:
    CC_SYNTHESIZE(int, nowPlayLevel, NowPlayLevel);
    static PlayLevelRecorder* getInstance();
    
    PlayLevelRecorder();
    virtual bool init();
    
    void writeLevelPassInfo(int level, int pass_status);
    int readLevelPassInfo(int level);
    void writeLevelStarNumInfo(int level, int starNum);
    int readLevelStarNumInfo(int level);
    int getLevelPassNum();
    int getThreeStarLevelNum();
};

#endif /* defined(__FruitCrush__PlayLevelRecorder__) */
